<script setup>
import {ref, defineProps} from "vue"
const active = ref(0);
defineProps({
  day: {
    type: Array,
    default: []
  },
  month: {
    type: Array,
    default: []
  }
})
</script>

<template>
  <van-tabs v-model:active="active">
    <van-tab title="日报">
      <div class="padding">
        <van-cell-group>
          <van-cell v-for="(item,index) in day" :key="index" :title="item.title" :value="item.value" />
        </van-cell-group>
      </div>
    </van-tab>
    <van-tab title="周报">
      <div class="padding">
        <van-cell-group>
          <van-cell v-for="(item,index) in month" :key="index" :title="item.title" :value="item.value" />
        </van-cell-group>
      </div>
    </van-tab>
  </van-tabs>
</template>

<style scoped>

</style>